package org.yourorg.assassin
{
	import mx.collections.ArrayCollection;
	
	import net.assassin.model.contributors.IListContributor;
	
	import org.yourorg.services.IUserService;
	import org.yourorg.services.impl.UserService;

	public class UserList implements IListContributor
	{
		public function UserList()
		{
		}
		
		private var _uid:uint;
		public var _name:String;
		private var _resource:Class;
		private var _icon:Object;
		
		
		public function get itemUid():uint
		{
			return _uid;
		}
		
		public function set itemUid(value:uint):void
		{
			_uid = value;
		}
		
		public function get itemName():String{
			return this._name
		}
		[Bindable] 
		public function set itemName(s:String):void{
			this._name = s;
		}
		
		public function get itemResource():Class
		{
			return _resource;
		}
		
		public function set itemResource(value:Class):void
		{
			_resource = value;
		}
		
		public function get itemIcon():Object
		{
			return _icon;
		}
		
		public function set itemIcon(value:Object):void
		{
			_icon = value;
		}
		
		
		
		private var _itemContributors:ArrayCollection;
		public function get itemContributors():ArrayCollection
		{
			if(_itemContributors == null){
				_itemContributors = new ArrayCollection();
				IUserService.getUsers()
			}
			return _itemContributors;
		}
		
		[Bindable] 
		public function set itemContributors(value:ArrayCollection):void
		{
			_itemContributors = value;
		}
	}
}